package com.dragon.graduation.proposalReport.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dragon.graduation.proposalReport.controller.dto.ProposalReportSearchDTO;
import com.dragon.graduation.proposalReport.controller.vo.ProposalReportVO;
import com.dragon.graduation.proposalReport.entity.ProposalReportEntity;
import com.dragon.graduation.proposalReport.mapper.ProposalReportMapper;
import com.dragon.graduation.proposalReport.service.ProposalReportService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 开题报告表 服务实现类
 * </p>
 *
 * @author dragon
 * @since 2025-02-28 21:20:54
 */
@Service
public class ProposalReportServiceImpl extends ServiceImpl<ProposalReportMapper, ProposalReportEntity> implements ProposalReportService {

    @Override
    public Page<ProposalReportVO> pages(Page<ProposalReportEntity> entityPage, ProposalReportSearchDTO searchDTO) {
        return baseMapper.selectPages(entityPage, searchDTO);
    }

    @Override
    public ProposalReportEntity findByProjectIdAndStudentId( Integer projectId,Integer studentId) {
        return baseMapper.selectByProjectIdAndStudentId( projectId,studentId);
    }
}
